package com.tkjy.pojo;

import java.util.Date;

public class Transaction implements java.io.Serializable {
    private Long id;//记录id
    private String cardno;//卡号
    private Date transactionDate;//交易日期
    private Double amount;//交易金额
    private Double balance;//账户余额
    private String transactionType;//交易类型
    private String remark;//备注

    public Transaction() {
    }

    public Transaction(String cardno, Double amount, Double balance, String transactionType) {
        this.cardno = cardno;
        this.amount = amount;
        this.balance = balance;
        this.transactionType = transactionType;
    }

    public Transaction(Long id, String cardno, Date transactionDate, Double amount, Double balance, String transactionType, String remark) {
        this.id = id;
        this.cardno = cardno;
        this.transactionDate = transactionDate;
        this.amount = amount;
        this.balance = balance;
        this.transactionType = transactionType;
        this.remark = remark;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public Date getTransactionDate() {
        return transactionDate;
    }

    public void setTransactionDate(Date transactionDate) {
        this.transactionDate = transactionDate;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public String getTransactionType() {
        return transactionType;
    }

    public void setTransactionType(String transactionType) {
        this.transactionType = transactionType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
